//
//  File.swift
//  Seed
//
//  Created by Samuel on 2017/6/5.
//  Copyright © 2017年 RedSoft. All rights reserved.
//

import Foundation
import UIKit

extension UIStoryboard{
    class func initialViewController(_ name:String) -> UIViewController? {
        return UIStoryboard(name: name, bundle: nil).instantiateInitialViewController()
    }
    class func instantiateViewController(_ name:String,withIdentifier identifier: String) -> UIViewController{
        return UIStoryboard.init(name: name, bundle: nil).instantiateViewController(withIdentifier: identifier)
    }
}
